package com.calvin.tingapp.actions;

import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.calvin.android.annotation.ViewInject;
import com.calvin.android.notification.NotificationCenter;
import com.calvin.tingapp.MainActivity;
import com.calvin.tingapp.R;
import com.calvin.tingapp.config.NTConfig;

public class ZoneAction {

    @ViewInject(isTag = true, tag = "local_book")
    public void onLocalBookclick(View view) {
        NotificationCenter.shared().postNotice(NTConfig.NT_NAV_NEXT, R.layout.action_book_list, new BookListAction(BookListAction.T_LOCAL));
    }

    @ViewInject(isTag = true, tag = "like_book")
    public void onLikeBookClick(View view) {
        NotificationCenter.shared().postNotice(NTConfig.NT_NAV_NEXT, R.layout.action_book_list, new BookListAction(BookListAction.T_LIKE));
    }


    @ViewInject(isTag = true, tag = "download_book")
    public void onDwonloadClick(View view) {
        Toast.makeText(MainActivity.sharedCurrent(), R.string.s_wait_develop, Toast.LENGTH_SHORT).show();
    }


    @ViewInject(isTag = true, tag = "record_book")
    public void onRecoreBookClick(View view) {
        NotificationCenter.shared().postNotice(NTConfig.NT_NAV_NEXT, R.layout.action_book_list, new BookListAction(BookListAction.T_RECORD));
    }


    @ViewInject(isTag = true, tag = "more")
    public void onMoreClick(View view) {
        Toast.makeText(MainActivity.sharedCurrent(),R.string.s_wait_develop,Toast.LENGTH_SHORT).show();
    }
}
